//
//  Explore.h
//  XPhoto
//
//  Created by baboy on 2019/8/26.
//  Copyright © 2019 baboy. All rights reserved.
//

#import "Model.h"
#import "SearchArgs.h"
#import "Post.h"

NS_ASSUME_NONNULL_BEGIN
#define API_EXPLORE_SEARCH          @"explore_search"
#define API_EXPLORE_SEARCH_POSTS    @"explore_search_posts"

//搜索用户
#define EXPLORE_SEARCH_TYPE_USER    @"user"
//搜索地点
#define EXPLORE_SEARCH_TYPE_LOC     @"loc"
//搜索话题
#define EXPLORE_SEARCH_TYPE_TOPIC   @"topic"

@class ExploreItem, ExploreSearchArgs;

@interface Explore : Model
+ (id)searchPostsWithArgs:(ExploreSearchArgs *)args
            callback:(void(^)(id task, id response, NSError *error))callback;


+ (id)searchWithArgs:(ExploreSearchArgs *)args
            callback:(void(^)(id task, id response, NSError *error))callback;

@end

@interface ExploreItem:Model
@property(nonatomic, strong) NSString *type;
@property(nonatomic, strong) id data;
@end

@interface ExploreSearchArgs : SearchArgs
@property(nonatomic, strong) NSString *type;
@end
NS_ASSUME_NONNULL_END
